package yhao.infra.feature.activemq;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author yoara
 * <p> Created on 2019/8/9 </p>
 */
@ConfigurationProperties(prefix = "yhao.activemq")
public class YhaoActiveMqProperties {
    /**activemq地址**/
    private String url;
    /**缓存池尺寸**/
    private int sessionSize = 10;
    /**消息发送超时时间**/
    private int sendTimeout = 10000;
    /**连接等待返回超时时间**/
    private int connectResponseTimeout = 5000;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getSessionSize() {
        return sessionSize;
    }

    public void setSessionSize(int sessionSize) {
        this.sessionSize = sessionSize;
    }

    public int getSendTimeout() {
        return sendTimeout;
    }

    public void setSendTimeout(int sendTimeout) {
        this.sendTimeout = sendTimeout;
    }

    public int getConnectResponseTimeout() {
        return connectResponseTimeout;
    }

    public void setConnectResponseTimeout(int connectResponseTimeout) {
        this.connectResponseTimeout = connectResponseTimeout;
    }
}
